package serivce

import (
	"context"
	"rank-srv/dao"
	__ "rank-srv/proto"
)

type Top struct {
	__.UnimplementedTopServer
}

func (t *Top) TopList(_ context.Context, in *__.TopReq) (*__.TopResp, error) {

	topService := dao.NewTopShop()
	List := topService.Top()

	return &__.TopResp{
		List: List,
	}, nil
}
